package cn.itcast.search.service;

import cn.itcast.hmall.dto.common.PageDTO;
import cn.itcast.hmall.dto.search.SearchReqDTO;
import cn.itcast.hmall.pojo.item.Item;
import cn.itcast.hmall.pojo.item.ItemDoc;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface SearchService  {
    PageDTO<ItemDoc> find(SearchReqDTO searchReqDTO) throws IOException;

    Map<String, List<String>> getFilters(SearchReqDTO searchReqDTO);

    List<String> suggestion(String key);

    void deleteById(Long id);

    void insertById(Long id);
}
